package com.anycl.design.behavioral.responsibility;

public class Request implements IRequest {

    private int level;

    private String request = "";

    public Request(int level, String request) {
        this.level = level;
        switch (this.level) {
            case 1:
                this.request = "难度级别为1的请求是：" + request;
                break;
            case 2:
                this.request = "难度级别为2的请求是：" + request;
                break;
            case 3:
                this.request = "难度级别为3的请求是：" + request;
                break;
        }
    }

    @Override
    public int getRequestLevel() {
        return this.level;
    }

    @Override
    public String getRequest() {
        return this.request;
    }
}
